<?php
use think\facade\Route;

Route::group('boss', function () {
    Route::rule('bossDownloadSingle', '/mobile/boss/bossDownloadSingle');
    Route::rule('bossDownload', '/mobile/boss/bossDownload');
})->middleware(\app\mobile\middleware\CheckUser::class);

Route::group('client', function () {
    Route::rule('clientList', '/mobile/client/clientList');
})->middleware(\app\mobile\middleware\CheckUser::class);

Route::group('user', function () {
    Route::rule('register', '/mobile/user/register');
    Route::rule('getOpenId', '/mobile/user/getOpenId');
    Route::rule('userList', '/mobile/user/userList');
    Route::rule('getTelphone', '/mobile/user/getTelphone');
})->middleware(\app\mobile\middleware\PlatformInfo::class);
Route::group('index', function () {
    Route::rule('upload', '/mobile/index/upload');
    Route::rule('system', '/mobile/index/system');
    Route::rule('banner', '/mobile/index/banner');
    Route::rule('sendMessage', '/mobile/index/sendMessage');
    Route::rule('template', '/mobile/index/template');


})->middleware(\app\mobile\middleware\PlatformInfo::class);
Route::group('consumer', function () {
    Route::rule('saveStoreConsumer', '/mobile/consumer/saveStoreConsumer');
    Route::rule('consumerList', '/mobile/consumer/consumerList');
    Route::rule('sendUserConsumer', '/mobile/consumer/sendUserConsumer');
    Route::rule('claimConsumer', '/mobile/consumer/claimConsumer');
    Route::rule('claimActivityConsumer', '/mobile/consumer/claimActivityConsumer');
    Route::rule('claimConsumerLog', '/mobile/consumer/claimConsumerLog');
})->middleware(\app\mobile\middleware\PlatformInfo::class);
Route::group('store', function () {
    Route::rule('addStore', '/mobile/store/addStore');
    Route::rule('storeList', '/mobile/store/storeList');
    Route::rule('classify', '/mobile/store/classify');
    Route::rule('joinActivity', '/mobile/store/joinActivity');
    Route::rule('addStoreAccount', '/mobile/store/addStoreAccount');

})->middleware(\app\mobile\middleware\PlatformInfo::class);
Route::group('transaction', function () {
    Route::rule('buyOrder', '/mobile/transaction/buyOrder');
    Route::rule('applyWithdraw', '/mobile/transaction/applyWithdraw');
    Route::rule('payCoupon', '/mobile/transaction/payCoupon');
    Route::rule('payTicket', '/mobile/transaction/payTicket');
    Route::rule('orderLogList', '/mobile/transaction/orderLogList');

})->middleware(\app\mobile\middleware\PlatformInfo::class);

Route::group('coupon', function () {
    Route::rule('couponList', '/mobile/coupon/couponList');
    Route::rule('couponConsumer', '/mobile/coupon/couponConsumer');
    Route::rule('buyCoupon', '/mobile/coupon/buyCoupon');
    Route::rule('couponOrder', '/mobile/coupon/couponOrder');
    Route::rule('joinCoupon', '/mobile/coupon/joinCoupon');
    Route::rule('waitCouponList', '/mobile/coupon/waitCouponList');



})->middleware(\app\mobile\middleware\PlatformInfo::class);
Route::group('ticket', function () {
    Route::rule('addTicket', '/mobile/ticket/addTicket');
    Route::rule('editTicket', '/mobile/ticket/editTicket');
    Route::rule('joinTicket', '/mobile/ticket/joinTicket');
    Route::rule('ticketList', '/mobile/ticket/ticketList');
    Route::rule('ticketInfo', '/mobile/ticket/ticketInfo');

    Route::rule('ticketConsumer', '/mobile/ticket/ticketConsumer');
    Route::rule('buyTicket', '/mobile/ticket/buyTicket');
    Route::rule('addTicket', '/mobile/ticket/addTicket');
})->middleware(\app\mobile\middleware\PlatformInfo::class);


Route::group('activity', function () {
    Route::rule('activityList', '/mobile/activity/activityList');
    Route::rule('activityInfo', '/mobile/activity/activityInfo');
    Route::rule('joinActivityStore', '/mobile/activity/joinActivityStore');
    Route::rule('activityConsumer', '/mobile/activity/activityConsumer');


})->middleware(\app\mobile\middleware\PlatformInfo::class);

Route::group('goods', function () {
    Route::rule('saveStoreGoods', '/mobile/goods/saveStoreGoods');
    Route::rule('goodsList', '/mobile/goods/goodsList');
    Route::rule('updateStatus', '/mobile/goods/updateStatus');
    Route::rule('deleteGoods', '/mobile/goods/deleteGoods');


})->middleware(\app\mobile\middleware\PlatformInfo::class);
